from hypervisor import Hypervisor
import libvirt


class VMware(Hypervisor):

    def __init__(self):
        Hypervisor.__init__(self)
        self.conn = libvirt.open('vmwarews:///session')
        VMWARE_PATH = 'image/vmware'
        if self.conn is None:
            raise Exception('Failed to open connection to the vmwarews hypervisor')
        self.VM_path = VMWARE_PATH


